package nc.vo.med.pub.sql;


//Source file: E:\\My Documents\\My Doc\\DM\\nc\\vo\\dm\\pub\\sql\\UpdateSQL.java

public class UpdateSQL extends OnceSQL {
	public SetCollection theSetCollection;

	public Object theTableName;

	public WhereCollection theWhereCollection;

	public UpdateSQL() {
		super();

	}

	public SetCollection getSetCollection() {
		return theSetCollection;
	}

	public Object getTableName() {
		return theTableName;
	}

	public WhereCollection getWhereCollection() {
		return theWhereCollection;
	}

	public void setSetCollection(SetCollection newSetCollection) {
		theSetCollection = newSetCollection;
	}

	public void setTableName(Object newTableName) {
		theTableName = newTableName;
	}

	public void setWhereCollection(WhereCollection newWhereCollection) {
		theWhereCollection = newWhereCollection;
	}

	public java.lang.String toString() {
		StringBuffer sb = new StringBuffer();
		if (theTableName instanceof TableName) {
			sb.append(" update " + ((TableName) theTableName).getTableName());
		} else {
			sb.append(" update " + theTableName.toString());
		}
		sb.append(getSetCollection().toString());
		sb.append(getWhereCollection().toString());

		return sb.toString();
	}
}